Skip to content

Conversation

@monsanto-pinheiro
Copy link

Catch exception 'ProtectedError' when try to remove a pk with a relation in the model.
Only have to define "on_delete=models.PROTECT" in the model fields.

Catch exception 'ProtectedError' when try to remove a pk with a relation in the model.
Only have to define "on_delete=models.PROTECT" in the model fields.
@trco
Copy link
Owner

trco commented Apr 10, 2020

@monsanto-pinheiro Thanks for your PR, however I can't consider it unless it includes test for the change. Please add a test and I would gladly approve this PR.

@monsanto-pinheiro
Copy link
Author

I only did tests for 'tests_unit'. I didn't for functional. Please, can you do it?
cheers,

@trco
Copy link
Owner

trco commented Jul 1, 2023

@monsanto-pinheiro Same as in #126 (comment). Sorry for not including your PR back in 2020. I'm again working on this package from time to time thus I would like to ask you if you're interested in adjusting this outdated PR to the current code. It would be great to have you as collaborator. Otherwise I would like to thank you for your contribution and include your idea in one of the next releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants